package com.example.service;

import com.example.dto.OrdersDto;

import com.example.dto.OrdersListDto;
import com.example.dto.ReportListDto;
import com.example.pojo.Orders;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

public interface OrderService {
    ResponseEntity<Map<String, Object>> getOrder(OrdersDto orders);
    ResponseEntity<Map<String, Object>> insertOrder(OrdersDto orders);
    List<OrdersListDto> getOrdersByUserId(String userId);
    void cancelOrder(Integer orderId);
    boolean checkOrderExists(Integer orderId);
    ResponseEntity<Map<String, Object>> confirmOrder(@RequestBody OrdersDto ordersDto);
}
